<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>事件绑定</title>
</head>
<body>
<div id="div">
    <div>{{name}}</div>
    <button v-on:click="change()">改变div的内容</button>
    <button v-on:dblclick="change()">改变div的内容</button>

    <button @click="change()">改变div内容</button>
</div>
</body>
<script src="js/vuejs-2.5.16.js"></script>
<script>
    new Vue({
        el:"#div",
        data:{
            name:"山东蓝翔"
        },
        methods:{
            change(){
                this.name = "传智播客"
            }
        }
    });
</script>
</html>